package net.lesscoding.shop.remote;

import net.lesscoding.shop.common.Result;
import net.lesscoding.shop.entity.User;
import net.lesscoding.shop.entity.UserMoneyLog;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author eleven
 * @date 2024/6/14 9:27
 * @apiNote
 */
@FeignClient(name = "shop-user-service")
@RequestMapping("/user")
public interface UserFeignService {

    @PostMapping("/updateUserMoney")
    Result updateUserMoney(@RequestBody UserMoneyLog userMoneyLog);

    @GetMapping("/{userId}")
    Result<User> getById(@PathVariable Long userId);
}
